package hd;

/**
 * @author oldliu
 * @since 1.0
 */
public class DogTest {
    public static void main(String[] args) {
        Dog d=new Dog();
        d.setName("旺财");
        d.setAge(100);
        d.setColor("黄");
        d.cry();
        d.eat();
        Rabbit r=new Rabbit("月兔");
        YellowMouseWolf y=new YellowMouseWolf("小黄狼");
        Mouse m=new Mouse("米奇");

        d.grab(m);
        d.grab(y);
        d.grab(r);
    }
}
